/*
 * @Description:
 * @Author: 稽辉
 * @Date: 2025-01-31 13:01:08
 * @LastEditTime: 2025-03-10 18:35:21
 * @LastEditors: 稽辉
 */
import type { ProfileDetail, ProfileParams } from '@/types/member'
import { http } from '@/utils/http'
//获取个人数据
export const getMemberProfileAPI = (id: number) => {
  return http<ProfileDetail>({
    method: 'GET',
    url: '/users/getInfo',
    data: {
      id,
    },
  })
}
//修改个人信息
export const putMemberProfileAPI = (data: ProfileParams, userId: Number) => {
  return http<ProfileDetail>({
    method: 'PUT',
    url: `/users/update?id=${userId}`,
    data,
  })
}
